#ifndef INITARC_H
#define INITARC_H

#include "myGraph.h"
#include <QWidget>
#include <QFile>
#include <QDebug>
#include <QtMath>

namespace Ui {
class initArc;
}

class initArc : public QWidget
{
    Q_OBJECT

public:
    explicit initArc(QWidget *parent = nullptr);
    ~initArc();

    QFile arcFile;
    QString arcFilePath = "../Campus-guide-system-of-BUPT/File/arc.txt";
    myGraph *graph;
    int point1;
    int point2;
    double scale;
    double scaleXiTuCheng = 565. / 494;
    double scaleShaHe = 649. / 579;
    double distance;
    bool bikePass = true;
    QString peakPeriod;
    QString peakValue;

    int DeterPoint(int x, int y, int campus);
    void SaveArc();
    void Init(void);

private slots:
    void GetArc(int x1, int y1, int x2, int y2, int campus, myGraph *graph);
private:
    Ui::initArc *ui;
};

#endif // INITARC_H
